<?php
/**
 * BookingFixture
 *
 */
class BookingFixture extends CakeTestFixture {

/**
 * Fields
 *
 * @var array
 */
	public $fields = array(
		'id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'primary'),
		'activity_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'index'),
		'user_id' => array('type' => 'integer', 'null' => false, 'default' => null, 'key' => 'index'),
		'date_booking' => array('type' => 'datetime', 'null' => false, 'default' => null),
		'number_pers' => array('type' => 'integer', 'null' => false, 'default' => null),
		'number_kids' => array('type' => 'integer', 'null' => true, 'default' => null),
		'deposit' => array('type' => 'float', 'null' => false, 'default' => null, 'length' => '5,2'),
		'total_price' => array('type' => 'float', 'null' => false, 'default' => null, 'length' => '5,2'),
		'id_transaction' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 222, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'transaction_valide' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 222, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'confirmation' => array('type' => 'string', 'null' => true, 'default' => null, 'length' => 222, 'collate' => 'utf8_general_ci', 'charset' => 'utf8'),
		'created' => array('type' => 'datetime', 'null' => true, 'default' => null),
		'updated' => array('type' => 'datetime', 'null' => true, 'default' => null),
		'deleted' => array('type' => 'boolean', 'null' => true, 'default' => null),
		'indexes' => array(
			'PRIMARY' => array('column' => 'id', 'unique' => 1),
			'fk_bookings_activities1_idx' => array('column' => 'activity_id', 'unique' => 0),
			'fk_bookings_users1_idx' => array('column' => 'user_id', 'unique' => 0)
		),
		'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_general_ci', 'engine' => 'InnoDB')
	);

/**
 * Records
 *
 * @var array
 */
	public $records = array(
		array(
			'id' => 1,
			'activity_id' => 1,
			'user_id' => 1,
			'date_booking' => '2014-10-27 02:39:29',
			'number_pers' => 1,
			'number_kids' => 1,
			'deposit' => 1,
			'total_price' => 1,
			'id_transaction' => 'Lorem ipsum dolor sit amet',
			'transaction_valide' => 'Lorem ipsum dolor sit amet',
			'confirmation' => 'Lorem ipsum dolor sit amet',
			'created' => '2014-10-27 02:39:29',
			'updated' => '2014-10-27 02:39:29',
			'deleted' => 1
		),
	);

}
